/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package fr.isen.web.webservicetemp.Entity;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 *
 * @author Maistre Louis
 */
@Entity
public class Temperature {
    
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private int Id;
     
    @Column(name = "tempval")
    private float temp;
    
    @Column(name = "posx")
    private float posx;
    
    @Column(name = "posy")
    private float posy;
    
    @Column(name = "posz")
    private float posz;
    
    @Column(name = "dateCapture")
    @Temporal(TemporalType.DATE)
    private Date dateCapture;

    
    public Date getDateCapture() {
        return dateCapture;
    }

    public void setDateCapture(Date dateCapture) {
        this.dateCapture = dateCapture;
    }

    public float getPosx() {
        return posx;
    }

    public float getPosy() {
        return posy;
    }

    public float getPosz() {
        return posz;
    }

    public float getTemp() {
        return temp;
    }

    public void setPosx(float posx) {
        this.posx = posx;
    }

    public void setPosy(float posy) {
        this.posy = posy;
    }

    public void setPosz(float posz) {
        this.posz = posz;
    }

    public void setTemp(float temp) {
        this.temp = temp;
    }  

    public int getId() {
        return Id;
    }

    public void setId(int Id) {
        this.Id = Id;
    }
    
    
}
